package joodle.ui;
/**
 * Represents the "PointEdit" action on the tool bar
 */
import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.Action;

import joodle.si.ResourceManager;
import joodle.tools.PointEditTool;

@SuppressWarnings("serial")
public class PointEditToolAction extends AbstractAction {
	static final String iconPath = "icons/";
	
	public PointEditToolAction() {
		putValue(Action.SMALL_ICON, ResourceManager.makeIcon("pedit"));
		putValue(Action.SHORT_DESCRIPTION, "Point Editing Tool");
	}
	/**
	 * @see AbstractAction#actionPerformed(ActionEvent)
	 */
	@Override
	public void actionPerformed(ActionEvent ae) {
		CanvasComponent.instance().setTool(new PointEditTool());
	}
}
